package cn.darkhorse.device.pojo;

import cn.darkhorse.common.annotation.Dict;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 维修单
 * </p>
 *
 * @author yangtianqi
 * @since 2024-05-29
 */
@Getter
@Setter
  @TableName("mes_repair_commission_info")
@ApiModel(value = "MesRepairCommissionInfo对象", description = "维修单")
public class MesRepairCommissionInfo implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键")
      @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("外委单号")
      private String orderNum;

      @ApiModelProperty("处理状态（0：外委中 9：已完成）")
      @Dict(dictType = "commission_dispose_status")
      private Integer disposeStatus;

      @Dict(dictTable = "sys_dept", dictType = "dept_id" , dictText = "dept_name" , alias = "dept")
      @ApiModelProperty("所属部门")
      private Long dept;

      @ApiModelProperty("设备id")
      private Long deviceId;

      @ApiModelProperty("设备名称")
      private String deviceName;

      @ApiModelProperty("设备编号")
      private String deviceCode;

      @ApiModelProperty("设备规格")
      private String deviceModel;

      @ApiModelProperty("设备位置")
      private String devicePosition;

      @Dict(dictTable = "mes_device_type", dictType = "id" , dictText = "type_name" ,alias = "deviceType")
      @ApiModelProperty("设备类型")
      private Long deviceType;

      @ApiModelProperty("外委单位")
      private Long commissionOrganization;

      @ApiModelProperty("外委单位名称")
      private String organizationName;

      @ApiModelProperty("外委联系人")
      private String commissionContact;

      @ApiModelProperty("外委联系人电话")
      private String commissionContactPhone;

      @ApiModelProperty("维修负责人")
      private String repairPrincipal;

      @ApiModelProperty("原因")
      private String reason;

      @ApiModelProperty("预估费用")
      private BigDecimal estimateAmount;

      @ApiModelProperty("完成时限")
      private LocalDate finishDate;

      @ApiModelProperty("实际费用")
      private BigDecimal realAmount;

      @ApiModelProperty("维修用时(分")
      private Integer useTimeHour;

      @ApiModelProperty("维修用时(秒")
      private Integer useTimeMinute;

      @ApiModelProperty("外委内容")
      private String commissionContent;

      @ApiModelProperty("创建人")
      private Long creator;

      @ApiModelProperty("创建时间")
      private LocalDateTime gmtCreate;


}
